package com.loodiestest;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import net.loodies.*;

public class AdViewActivity extends Activity {
	public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	LinearLayout layout;

	
	TextView text1;
	TextView text2;
	TextView text3;
	layout = new LinearLayout(this);
	layout.setOrientation(LinearLayout.VERTICAL);
	
	text1 = new TextView(this);
	text1.setText("Hi there! LoodiesSDK Android Test");
	text1.setBackgroundColor(Color.rgb(0, 100, 150));
	text1.setTextSize((float) 20);

	text2 = new TextView(this);
	text2.setText("I'm the second TextView, just for testing purpose");
	text2.setBackgroundColor(Color.rgb(40, 100, 150));
	text2.setTextSize((float) 14);

	text3 = new TextView(this);
	text3.setText("Moving Banner Example\n it will appear and disappear first time, and appear when user click on the black border ");
	text3.setBackgroundColor(Color.rgb(100, 100, 150));
	text3.setTextSize((float) 18);


	
	layout.addView(text2);
//	LoodiesAd ad = LoodiesWrapper.AddAd(this,LoodiesWrapper.menu_podcast_ad_slotd_id);
	//layout.addView(ad);
	
	layout.addView(text3);
	layout.addView(LoodiesWrapper.AddAdAsView(this,LoodiesWrapper.menu_podcast_ad_slotd_id));
	layout.addView(text1);


	setContentView(layout);
	LoodiesWrapper.AddAd(this,LoodiesWrapper.splashscreen_ad_slotd_id);
	
   }
}